// import "./router/about";
// import "./router/categorey";
// const message = "hellow Main";
// console.log(message);

// function foo() {
//   console.log("foo console");
// }

// foo();

const btn1 = document.createElement("button");
const btn2 = document.createElement("button");
btn1.textContent = "关于";
btn2.textContent = "分类";

document.body.append(btn1);
document.body.append(btn2);

btn1.onclick = () => {
  import(/* webpackChunkName:"aboutaa"*/ "./router/about").then((res) => {
    console.log(res.about());
    res.default;
    console.log(res.default);
  });
};
btn2.onclick = () => {
  import(/* webpackChunkName:"categoreyddd"*/ "./router/categorey");
};
